class PhieuSach < ActiveRecord::Base
  attr_accessible :BookISBN, :BorrowDate, :BorrowerName, :DudeDate, :FineCost, :ReturnDate, :Status
def self.search(search)
  if search
    find(:all, :conditions => ['BookISBN LIKE ?', "%#{search}%"])
  else
    find(:all)
  end
end
end
